#ifndef __RSSREADER_H_
#define __RSSREADER_H_
#include"tinyxml/tinyxml2.h"
#include<string>
#include<vector>
#include<iostream>
#include<fstream>
#include<sstream>
#include<map>
#include<regex>
#include "../../log/Mylog.h"

using std::map;
using std::pair;
using std::vector;
using std::string;
using std::stringstream;
using namespace tinyxml2;

namespace SE
{
    struct RssItem
     {
        string title;
        string link;
        string description;
        string content;
    };   
        
    class RssReader
    {
    public:
        void DFS(XMLElement*);
        bool ParseRss(const string&);
        void Parse(const string&, const string&, vector<string>&, map<int, pair<int, int>>&);

    private:
        vector<RssItem> _rss;
    };
}

#endif
